package Task;

import java.util.*;

public class Test {
    public static void main(String[] args) {
        List <String>rand = new ArrayList<>();
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        Random rand1 =new Random();

        for (int i = 65; i <=90 ; i++) {
            rand.add((char)i+"");
        }
        Set password =new HashSet();
        while (password.size()<num){
            password.add(rand.get(rand1.nextInt(27)));
        }
        System.out.println(password);
    }
}
